<script setup>
import { RouterLink, RouterView } from 'vue-router';

</script>

<template>
  <el-card style="width: 100%">
    <template #header>
      <div class="card-header">
        <span>使用Vue3+ElementPlus+Pinia实现购物车功能</span>
      </div>
    </template>
    <RouterLink to="productList"> <el-button type="primary">商品列表</el-button>
    </RouterLink>
    <RouterLink to="shoppingCar"> <el-button type="success">购物车</el-button></RouterLink>
    <template #footer>
      <RouterView/>
    </template>
  </el-card>
</template>

<style scoped>
.el-button{
  margin-left: 50px;
  margin-right: 50px;
}
</style>
